import type { Column } from "@/components/CrudPage/type";

export function useSysRegionProvider() {
  // 列配置
  const columns: Column[] = [
    {
      label: "",
      slot: "id",
      prop: "id",
      create: true,
      edit: true
    },
    {
      label: "",
      slot: "name",
      prop: "name",
      create: true,
      edit: true
    },
    {
      label: "",
      slot: "pid",
      prop: "pid",
      create: true,
      edit: true
    },
    {
      label: "",
      slot: "children",
      prop: "children",
      create: true,
      edit: true
    },
    {
      label: "",
      slot: "status",
      prop: "status",
      create: true,
      edit: true
    },
    {
      label: "",
      slot: "order",
      prop: "order",
      create: true,
      edit: true
    },
    {
      label: "",
      slot: "tenantId",
      prop: "tenantId",
      create: true,
      edit: true
    },
    {
      label: "操作",
      prop: "operation",
      slot: "operation"
    }
  ];

  return {
    columns
  };
}
